package com.axend.aerosense.common.util;

import android.text.TextUtils;
import android.util.Log;

import com.axend.aerosense.base.storage.MmkvHelper;
import com.axend.aerosense.common.BuildConfig;
import com.axend.aerosense.common.config.Gobal;

public class TokenUtil {
    public static void saveToken(String token){
        if(!TextUtils.isEmpty(token)){
            if(BuildConfig.DEBUG){
                Log.e("TOKEN", "This is token:" + token);
            }
            MmkvHelper.getInstance().getMmkv().encode(Gobal.SAVE_KEY.TOKEN, token);
        }

    }
}
